package com.siemens.industrial.model.partner;

import org.springframework.jdbc.core.RowMapper;

/**
 * Created by qupen on 2016/9/18.
 */
public class Metadata {
    private String metaId;
    private String metaKey;
    private String metaDefinition;

    private static final RowMapper<Metadata> rowMapper = (resultSet, i) -> {
        Metadata metadata = new Metadata();
        metadata.setMetaId(resultSet.getString("meta_id"));
        metadata.setMetaKey(resultSet.getString("meta_key"));
          metadata.setMetaDefinition(resultSet.getString("meta_definition"));
        return metadata;
    };

    public static RowMapper<Metadata> getRowMapper() {
        return rowMapper;
    }

    //<editor-fold desc="getters and setters">

    public String getMetaId() {
        return metaId;
    }

    public void setMetaId(String metaId) {
        this.metaId = metaId;
    }

    public String getMetaKey() {
        return metaKey;
    }

    public void setMetaKey(String metaKey) {
        this.metaKey = metaKey;
    }

    public String getMetaDefinition() {
        return metaDefinition;
    }

    public void setMetaDefinition(String metaDefinition) {
        this.metaDefinition = metaDefinition;
    }

    //</editor-fold>
}
